<?php defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * @package     Pages Module
 * @author      Matrix Infoline (infolinematrix@gmail.com
 * @copyright   (c) Matrix Infoline
 */

class Recent_listing extends Frontend_Controller
{

	public function __construct()
	{
		parent::__construct();
		$this->template->set_layout('default');
		
		$this->load->model(array('widget_model'));
		
		
	}

	public function show()
	{
		$data['title'] = "Recent Listings";
		
		$data['recent'] = $this->widget_model->recent_listing(5);
		$this->load->view('recent_listing',$data);
		 
	}

}
